/*
 * @message: 描述
 * @Author: Roy
 * @Email: cx_love_xc@163.com
 * @Github: cx_love_xc@163.com
 * @Date: 2022-01-13 10:43:22
 * @LastEditors: Roy
 * @LastEditTime: 2022-01-15 14:56:15
 * @Deprecated: 否
 * @FilePath: /blog/src/common/util.js
 */

export const parseJsonByString = (str, defaultValue) => {
    let returnValue = defaultValue;
    try {
        returnValue = JSON.parse(str);
    } catch (e) {
    }
    return returnValue
}